package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 食物表(TEatFood)实体类
 *
 * @author makejava
 * @since 2022-07-02 20:35:24
 */
@Data
@TableName("t_eat_food")
@NoArgsConstructor
public class EatFood implements Serializable {
    private static final long serialVersionUID = -96416132581302662L;
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 食物id
     */
    private Integer fid;

    private String name;
    /**
     * 食物图片
     */
    private String photo;
    /**
     * 制作难易度（1.）
     */
    private String level;
    /**
     * 制作时间（分钟)
     */
    private Integer minute;

    public EatFood(Integer fid, String name, String photo, String level, Integer minute) {
        this.fid = fid;
        this.name = name;
        this.photo = photo;
        this.level = level;
        this.minute = minute;
    }
}

